package com.ymk.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.ymk.base.BaseVO;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * job信息
 * </p>
 *
 * @author 胡泽鑫
 * @since 2023-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("job")
public class Job extends BaseVO {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * job goup，与job name唯一标示
     */
    @TableField("job_group")
    private String jobGroup;

    /**
     * job名字，与java name一致
     */
    @TableField("job_name")
    private String jobName;

    /**
     * job编码，与spring name一致
     */
    @TableField("job_code")
    private String jobCode;

    /**
     * job中文说明
     */
    @TableField("job_desc")
    private String jobDesc;

    /**
     * 1正常0停用
     */
    @TableField("status")
    private Integer status;

    /**
     * 上次执行完成时间
     */
    @TableField("last_exe_date")
    private Date lastExeDate;

    /**
     * cron表达式
     */
    @TableField("cron_expression")
    private String cronExpression;


}
